package com.product.shop.dao;

import com.product.shop.entity.GoodsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 
 * 
 * @author brh
 * @email sunlightcs@gmail.com
 * @date 2022-02-22 16:30:11
 */
@Mapper
public interface GoodsDao extends BaseMapper<GoodsEntity> {
    @Select("select * from goods")
    List<GoodsEntity> shopxl();

    @Select("select * from goods where goods_name=#{goodsName}")
    GoodsEntity goodsHx(@Param("goodsName") String goodsName);
}
